﻿@{
    ViewBag.Title = "Home Page";
}
@section home_slider
{
      @Html.Partial("_HomeSlider")
}
@using MVCWebApp.Models;
<ul class="hProductItems clearfix">
    @foreach (product p in (List<product>)ViewData["products"])
    {
       <li class="span3 clearfix">
		<div class="thumbnail">
			<a href="@Url.Action("Details", "Product", new { id=@p.id})" class="invarseColor"><img src="img/212x192.jpg" alt=""></a>
		</div>
		<div class="thumbSetting">
			<div class="thumbTitle">
				<a href="@Url.Action("Details", "Product", new { id=@p.id})" class="invarseColor">
					@p.name
				</a>
			</div>
			<div class="thumbPrice">
				<span>@p.price</span>
			</div>

			<div class="thumbButtons">
				<button class="btn btn-primary btn-small" data-title="+To Cart" data-placement="top" rel="tooltip">
					<i class="icon-shopping-cart"></i>
				</button>
				<a href="@Url.Action("Details", "Product", new { id=@p.id})" class="invarseColor"><button class="btn btn-small" data-title="+To WishList" data-placement="top" rel="tooltip">
					<i class="icon-heart"></i>
				</button></a>
										
				
			</div>
		</div>
	</li>
    }
	
	
</ul>
